package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 * <p>
 * 满减表
 * </p>
 *
 * @author XYJ
 * @since 2022-07-20
 */
@TableName("operate_full")
@ApiModel(value = "OperateFull对象", description = "满减表")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OperateFull implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增id")
    @TableId(value = "id", type = IdType.AUTO)
    @Null
    private Integer id;

    @ApiModelProperty("满减名称")
    private String name;

    @ApiModelProperty("满减类型/1-满减数量/2-满减金额")
    private Integer type;

    @ApiModelProperty("使用类型/1-全部商品/2-指定商品/3-指定分类")
    private Integer useType;

    @ApiModelProperty("满……")
    private BigDecimal first;

    @ApiModelProperty("使用门槛")
    private String useThreshold;

    @ApiModelProperty("减……")
    private BigDecimal second;

    @ApiModelProperty("使用范围/1-单一商品/2-可使用产品")
    private Integer useRange;

    @ApiModelProperty("使用方式/1-使用一次/2-循环使用")
    private Integer useWay;

    @ApiModelProperty("运营范围/多选框“值”相加得到该值")
    private Integer operateUse;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("满减编号")
    @NotBlank
    private String fullNo;
}
